#!/bin/bash
# 循环遍历输出文件名全路径的脚本
function readfile ()
{
  for file in `ls $1`
  do
    if [ -d $1"/"$file ]
    then
      readfile $1"/"$file
    else
      echo 'upload/'$1"/"$file
	fi
  done
}
folder="goods_images"
readfile $folder
